<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>   
        // g 修饰符：可以实现全局查找 
        // var str = "aabblsdddbbbdlBBdllbbbbb";
        // var reg = /b+/g;
        // console.log(str.match(reg));

        // i 修饰符：字母大小写可以不敏感，a 可以匹配 a 或 A
        var str = "aabblsdddbbbdlBBdllbbbbb";
        var reg = /A/ig;
        console.log(str.match(reg));
    </script>
</head>
<body>
    
</body>
</html>